package com.ecnu.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_email")
public class SysEmail implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发件人邮箱
     */
    @TableField("from_address")
    private String fromAddress;

    /**
     * 发件人名称
     */
    @TableField("from_name")
    private String fromName;

    /**
     * SMTP服务器地址
     */
    @TableField("smtp_host")
    private String smtpHost;

    /**
     * SMTP服务器端口
     */
    @TableField("smtp_port")
    private String smtpPort;

    /**
     * SMTP用户名
     */
    @TableField("smtp_username")
    private String smtpUsername;

    /**
     * SMTP授权码
     */
    @TableField("smtp_password")
    private String smtpPassword;

    @TableField("create_time")
    private Date createTime;

}
